<template>
  <div class="account-container">
    <div class="account-container__l">
      <nav-wrap
        width="302px"
        :list="list"
      ></nav-wrap>
    </div>
    <div class="account-container__r">
      <transition name="fade-transform" mode="out-in">
      <nuxt-child></nuxt-child>
      </transition>
    </div>
  </div>
</template>

<script>


  import NoticeCard from '../../components/pc/noticeCard';
  import CardContainer from '../../components/pc/cardContainer';
  import NavWrap from "../../components/pc/nav/navWrap";

  export default {
    data(){
      return{
        list: [
          {
            label: '基本资料',
            address: '/personal-center/account/info',
            id: '基本资料'
          },
          {
            label: '账号安全',
            address: '/personal-center/account/setting',
            id: '账号安全'
          }
        ],
        selected:'全部'

      }
    },
    components:{

      NoticeCard,CardContainer,NavWrap



    },

    created() {
      this.$router.replace('/personal-center/account/info')
    },

  }
</script>

<style lang="scss" scoped>
  .account-container{
    width: $pageWidth;
    margin:0 auto;
    padding-bottom: 32*$length;
    @extend %flex-row-spb;
    align-items: flex-start;
    .account-container__l{
      margin-top: 16*$length;
      overflow:hidden;
      width:302*$length;
    }
    .account-container__r{
      overflow:hidden;
      width:938*$length;
      border-radius: 4*$length;



    }
  }
</style>
